package cn.jlonely.xyhx.admin.service;

import cn.jlonely.xyhx.pojo.Notification;
import cn.jlonely.xyhx.utils.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface NotificationService {

    /**
     * 获取通知分页
     *
     * @param page
     * @param pageSize
     * @return
     */
    PageResult<Notification> getNotificationPage(Integer page, Integer pageSize);

    /**
     * 删除通知
     * @param id
     */
    void deleteNotification(Integer id);

    /**
     * 创建通知
     * @param notification
     */
    void createNotification(Notification notification);
}
